package org.ruanjj.designprinciple.dependencyinversion;

//这里新增一个设备只要实现这个接口就好
public class Fan implements Switchable{
    @Override
    public void turnOn() {
        System.out.println("风扇打开");
    }

    @Override
    public void turnOff() {
        System.out.println("风扇关闭");
    }
}
